<?php

require_once PHP_UI_PATH . DS . 'Constraint.php';

class GeneratedConstraint implements Constraint {

    public function getConstraintClass() {
        return "generated-value";
    }

    public function render() {
        return "$('.generated-value').val(Math.ceil(Math.random() * Number.MAX_VALUE));";
    }

}

?>
